cmake_minimum_required(VERSION 3.4.1)

add_library(com_ycsd_monthly_BsPatch
SHARED
com_ycsd_monthly_BsPatch.c
bspatch.c
bzip2/blocksort.c
bzip2/bzip2.c
bzip2/bzip2recover.c
bzip2/bzlib.c
bzip2/compress.c
bzip2/crctable.c
bzip2/decompress.c
bzip2/dlltest.c
bzip2/huffman.c
bzip2/mk251.c
bzip2/randtable.c
bzip2/spewG.c
bzip2/unzcrash.c)

find_library(log-lib log)

target_link_libraries(com_ycsd_monthly_BsPatch ${log-lib})